__author__ = 'CLINUX'
#coding=utf-8
class Simple:
    def __init__( self ):
        print( "constructor called, id={0}".format( id( self )))
    def __del__( self ):
        print( "destructor called, id={0}".format( id( self )))
    def func( sef ):
        print( "Simple func" )

a = Simple()         #输出->constructor called, id = 3211123
b = Simple()         #输出->constructor called, id = 3211145

a = Simple()         #输出->constructor called, id = 32111225  #destructor called, id = 3211123
a.func()